﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NJT.授权;

namespace NJT.Test.授权
{
    [TestClass]
    public class 编码test
    {


        [TestMethod]
        public void 编码_test()
        {

            var r2 = Base24Encoding.编码str("abcdefg");
            var r3 = Base24Encoding.解码str(r2);
            Assert.AreEqual("abcdefg", r3);

            r2 = Base24Encoding.编码str("3650000");   //1万年内的天数
            Assert.AreEqual(14, r2.Length);

            r3 = Base24Encoding.解码str(r2);
            Assert.AreEqual("3650000", r3);

             


        }

    }
}
